{template header}
{php doAction('tseditor')}

<div class="midder">
<div class="mc">
<div class="bbox">

<h1>[{$strGroup[groupname]}]发布帖子</h1>
<div class="bc">
{if $isGroupUser == '0'}
<div style="font-size:14px;padding-top:50px;text-align:center;">不好意思，你不是本组成员不能发表帖子，请加入后再发帖</div>
{else}
<form method="POST" action="{SITE_URL}index.php?app=group&ac=add&ts=do" onsubmit="return newTopicFrom(this)"  enctype="multipart/form-data">


<table width="100%">
<tbody>
<tr><td width="50">标题:</td>
<td><input style="padding:3px 0;width:600px;" type="text" name="title" /></td></tr>	

{if $arrGroupType}
<tr><td height="30">类型:</td><td>
<select name="typeid">
<option value="0">选择类型</option>
{loop $arrGroupType $key $item}
<option value="{$item[typeid]}">{$item[typename]}</option>
{/loop}
</select></td></tr>
{/if}


<tr>
<td valign="top">
内容:
</td><td>
<textarea style="width:100%" type="text" id="tseditor" name="content"></textarea>

</td></tr>

<tr><td>标签:</td><td><input style="width:250px;" type="text" name="tag" /> (多个标签请用,号分割)</td></tr>

<tr><td>评论:</td><td><input type="radio" checked="select" name="iscomment" value="0" />允许 <input type="radio" name="iscomment" value="1" />不允许</td>
</tr>


<tr><td>验证码:</td><td><input name="authcode" />
 <img align="absmiddle" src="{tsUrl('pubs','code')}" onclick="javascript:newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="cursor:pointer;"/></td>
</tr>

<tr><td></td><td>
<input type="hidden" name="groupid" value="{$strGroup[groupid]}" />
<input type="hidden" name="token" value="{$_SESSION['token']}" />



<button class="btn btn-success" type="submit">提交</button>

<a href="{tsUrl('group','show',array('id'=>$strGroup[groupid]))}" id="back">返回</a>
</td></tr>

</tbody>
</table>	

</form>
{/if}

</div>

</div>


</div>
</div>
{template footer}